<?php

defined('SYSPATH') or die('No direct access allowed.');

/**
 * @package    Kohana/Codebench
 * @category   Tests
 * @author     Geert De Deckere <geert@idoe.be>
 */
class Bench_Market_Category extends Codebench {

    public $loops = 1000;
    public $description =
		'Fixing <a href="http://dev.kohanaphp.com/issues/2772">#2772</a>, and comparing some possibilities.';
    
    public $subjects = array
	(
		// Valid callback strings
                0 => array('offset'=>1,'limit'=>1),
		1 => array('offset'=>1,'limit'=>1),
		2 => array('offset'=>0,'limit'=>1),
	);
    
    
    public function bench_get_categories($subjects)
    {
        $o_service_category = new Model_Service_Category();
        $a_category = $o_service_category->get_category_orderby_parentid($subjects['offset'],$subjects['limit']);
        return $a_category;
    }

}

?>
